package easy4j.framework.example.dao;

import easy4j.framework.example.entity.UserGroup;
import org.easy4j.framework.core.meta.PrintMe;
import org.easy4j.framework.core.orm.BaseDao;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: liuyong
 * @since 1.0
 */
@Repository
@PrintMe
public class IndexDao extends BaseDao<UserGroup> {


    @Transactional
    public int updateInTrasaction(UserGroup userGroup){

        return update(userGroup);
    }

}
